package com.hangzhou.xyj.model;

/**
 * Created by Administrator on 2016/1/20.
 */
public class ImageModel {
    private String name;//参数名
    private String path;//文件路径
    private String fileName;//文件名
    private String mime;//文件的mime类型
    private long id;//唯一标志

    public ImageModel(String path, long id) {
        this.path = path;
        this.id = id;
    }

    public ImageModel(String path) {
        this.path = path;
    }

    @Override
    public boolean equals(Object o) {
        if (o instanceof ImageModel) {
            return this.id == ((ImageModel) o).id;
        }
        return false;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getMime() {
        return mime;
    }

    public void setMime(String mime) {
        this.mime = mime;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }


}
